import { http } from '@/utils/http/axios';

/**
 * @description: 获取充电宝类型列表
 */
export function typelist(params) {
    return http.request({
      url: '/device/typelist',
      method: 'GET',
      params
    });
}

export function addType(params) {
    return http.request({
        url: '/device/addtype',
        method: 'POST',
        params
    });
}

export function editType(params) {
    return http.request({
        url: '/device/edittype',
        method: 'POST',
        params
    });
}

export function delType(params) {
    return http.request({
        url: '/device/deltype',
        method: 'GET',
        params
    });
}

export function typeInfo(params) {
    return http.request({
        url: '/device/typeinfo',
        method: 'GET',
        params
    });
}

/**
 * @description: 获取充电宝类型列表
 */
export function banklist(params) {
    return http.request({
      url: '/device/banklist',
      method: 'GET',
      params
    });
}

export function addbankType(params) {
    return http.request({
        url: '/device/addbanktype',
        method: 'POST',
        params
    });
}

export function editbankType(params) {
    return http.request({
        url: '/device/editbanktype',
        method: 'POST',
        params
    });
}

export function delbankType(params) {
    return http.request({
        url: '/device/delbanktype',
        method: 'GET',
        params
    });
}

export function typebankInfo(params) {
    return http.request({
        url: '/device/typebankinfo',
        method: 'GET',
        params
    });
}


/**
 * @description: 获取充电盒类型列表
 */
export function boxlist(params) {
    return http.request({
      url: '/device/boxlist',
      method: 'GET',
      params
    });
}

export function addboxType(params) {
    return http.request({
        url: '/device/addboxtype',
        method: 'POST',
        params
    });
}

export function editboxType(params) {
    return http.request({
        url: '/device/editboxtype',
        method: 'POST',
        params
    });
}

export function delboxType(params) {
    return http.request({
        url: '/device/delboxtype',
        method: 'GET',
        params
    });
}

export function typeboxInfo(params) {
    return http.request({
        url: '/device/typeboxinfo',
        method: 'GET',
        params
    });
}

/**
 * @description: 获取充电线类型列表
 */
export function linelist(params) {
    return http.request({
      url: '/device/linelist',
      method: 'GET',
      params
    });
}

export function addlineType(params) {
    return http.request({
        url: '/device/addlinetype',
        method: 'POST',
        params
    });
}

export function editlineType(params) {
    return http.request({
        url: '/device/editlinetype',
        method: 'POST',
        params
    });
}

export function dellineType(params) {
    return http.request({
        url: '/device/dellinetype',
        method: 'GET',
        params
    });
}

export function typelineInfo(params) {
    return http.request({
        url: '/device/typelineinfo',
        method: 'GET',
        params
    });
}


